package com.aruio.service.impl;

import com.aruio.entity.ExcelTask;
import com.aruio.mapper.ExcelTaskMapper;
import com.aruio.service.ExcelTaskService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Description TODO
 * @Date 2024/9/9 16:02
 * @Created by 10574
 */
@Service
@RequiredArgsConstructor
public class ExcelTaskServiceImpl implements ExcelTaskService {
    private final ExcelTaskMapper excelTaskMapper;
    @Override
    public void updateStatus(Long taskId, Integer status) {
        excelTaskMapper.updateStatusById(taskId, status);
    }

    @Override
    public void save(ExcelTask excelTask) {
        excelTaskMapper.save(excelTask);
    }

    @Override
    public void updateById(ExcelTask editTask) {
        excelTaskMapper.updateById(editTask);
    }
}
